package main

import (
	"encoding/json"
	"fmt"
)

// Actress 女演员
type Actress struct {
	Name       string
	Birthday   string
	BirthPlace string
	Opus       []string
}

func main() {
	jsonData := []byte(`[{
	"name":"迪丽热巴",
		"birthday":"1992-06-03",
		"birthPlace":"新疆乌鲁木齐市",
		"opus":[
			"《阿娜尔罕》",
			"《逆光之恋》",
			"《克拉恋人》"
		]}]`)

	var actress []Actress
	err := json.Unmarshal(jsonData, &actress)
	if err != nil {
		fmt.Println("error:", err)
		return
	}
	fmt.Println(actress[0].Name)
}
